package jgl.vajra.kingkong.part.home.contract;

import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.kingkong.bean.OrderListBean;
import jgl.vajra.kingkong.databinding.FragmentBaseListBinding;
import jgl.vajra.kingkong.databinding.FragmentOrderPageListBinding;
import jgl.vajra.kingkong.widget.mvvm.model.BaseModel;
import jgl.vajra.kingkong.widget.mvvm.view.BaseMVVMView;
import jgl.vajra.kingkong.widget.mvvm.viewmodel.BaseViewModel;

public class OrderPageListContract {

    public abstract static class Model extends BaseModel {
        public abstract Observable getOrderList(Map<String, Object> map);
    }

    public interface View extends BaseMVVMView {

        void onDetails(OrderListBean orderListBean);

        void onDetermine(OrderListBean orderListBean);

        void onComment(String orderId);
    }

    public abstract static class ViewModel extends BaseViewModel<View, FragmentBaseListBinding, Model> {
        public abstract Observable getOrderList(Map<String, Object> map);
    }
}
